import http from '@/utils/http'

class API {
	static api = new API()
	// 登录
	async login(code, mobile, lock = 0) {
		return await http.post('/ivmcr/member/login', {
			code,
			mobile,
			lock
		})
	}

	// 获取验证码
	async code(mobile) {
		return await http.post('/ivmcr/member/message', {
			mobile
		})
	}
}

export default API.api